package com.vhall.component.dao.goods;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vhall.component.entity.goods.LiveGoodsEntity;
import com.vhall.component.entity.goods.goods.LiveGoodsConsoleBindListRspVO;
import com.vhall.component.entity.goods.goods.LiveGoodsConsoleUnBindListRspVO;
import com.vhall.component.entity.goods.goods.LiveGoodsStatsConsoleRspVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author guoxin.wang
 * @date 2021-10-12
 */
@Mapper
@Repository
public interface LiveGoodsMapper extends BaseMapper<LiveGoodsEntity> {

    /**
     * 获取绑定的商品信息
     *
     * @param page
     * @param param
     * @return
     */
    Page<LiveGoodsConsoleBindListRspVO> getBindList(@Param("page") Page<LiveGoodsConsoleBindListRspVO> page, @Param("param") Map<String, Object> param);

    /**
     * 获取未绑定的商品信息
     *
     * @param page
     * @param param
     * @return
     */
    Page<LiveGoodsConsoleUnBindListRspVO> getUnBindList(@Param("page") Page<LiveGoodsConsoleUnBindListRspVO> page, @Param("param") Map<String, Object> param);

    /**
     * 获取商品统计信息
     *
     * @param page
     * @param param
     * @return
     */
    Page<LiveGoodsStatsConsoleRspVO> getStatList(@Param("page") Page<LiveGoodsStatsConsoleRspVO> page, @Param("param") Map<String, Object> param);

}
